{% extends "base.html" %}
{% block content%}
{% if entries %}

{% for entry in entries %}

<div class="post">
  <div id="post-{{entry.key}}">
    <div class="postinfo">
        <small>{{ entry.date|date:"Y-m-d H:i" }}</small>
        <h2>
            <a href="/{{ entry.link }}" title="Permanent Link to {{entry.title}}">{{ entry.title }}</a>
        </h2>
    </div>
    <p>
        {{entry.content_excerpt}}
    </p>
    <p class="postmetadata">
        {% if entry.strtags %}Tags: {%for tag in entry.tags%}<a href="/tag/{{tag|urlencode}}">{{tag}}</a> {%endfor%} | {%endif%}  
        分类: {%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%} | 
        {%if self.is_admin%}<a href="{{entry.edit_url}}">编辑</a> | 点击({{ entry.hitcount }}) | {%endif%}           
        <a href="/{{entry.link}}#comments">评论({{entry.commentcount}})&#187;</a>
    </p>
  </div>
</div>
{% endfor %}

<div class="box">
    <div class="alignleft">{% if show_next %}<a href="/page/{{ pageindex|add:"1" }}">&laquo; 上一页</a>{%endif%}</div>
    <div class="alignright">{% if show_prev %}<a href="/page/{{ pageindex|add:"-1" }}">&laquo; 下一页</a>{%endif%}</div>   
</div>

{% endif %}
{% endblock %}


